<template>
    <div class="topBarSon">
        <van-nav-bar
        :title="title"
        fixed
        left-text="返回"
        left-arrow
        @click-left="onClickLeft()">
        </van-nav-bar>
    </div>
</template>

<script>
export default {
    name:"TopBarSon",
    data(){
        return{
            title:this.$parent.title
        }
    },
    mounted(){

    },
    methods:{
        //点击左边按钮回退 
        onClickLeft(){
            this.$router.back(-1);
        }
    },
}
</script>